//
// CMeshVPWindTree.java
// Copyright (C) 2010  "Naush" <naush _ hotmail _ fr>
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>./* ----------------------------------------------------------------------------







package org.ryzom.nel.threed;

import org.ryzom.nel.misc.CVector;
import org.ryzom.nel.misc.IStream;

public class CMeshVPWindTree extends IMeshVertexProgram {
  private long swigCPtr;

  public CMeshVPWindTree(long cPtr, boolean cMemoryOwn) {
    super(nel3dJNI.CMeshVPWindTree_SWIGUpcast(cPtr), cMemoryOwn);
    swigCPtr = cPtr;
  }

  public static long getCPtr(CMeshVPWindTree obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nel3dJNI.delete_CMeshVPWindTree(swigCPtr);
      }
      swigCPtr = 0;
    }
    super.delete();
  }

  public void setFrequency(SWIGTYPE_p_float value) {
    nel3dJNI.CMeshVPWindTree_Frequency_set(swigCPtr, this, SWIGTYPE_p_float.getCPtr(value));
  }

  public SWIGTYPE_p_float getFrequency() {
    long cPtr = nel3dJNI.CMeshVPWindTree_Frequency_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
  }

  public void setFrequencyWindFactor(SWIGTYPE_p_float value) {
    nel3dJNI.CMeshVPWindTree_FrequencyWindFactor_set(swigCPtr, this, SWIGTYPE_p_float.getCPtr(value));
  }

  public SWIGTYPE_p_float getFrequencyWindFactor() {
    long cPtr = nel3dJNI.CMeshVPWindTree_FrequencyWindFactor_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
  }

  public void setPowerXY(SWIGTYPE_p_float value) {
    nel3dJNI.CMeshVPWindTree_PowerXY_set(swigCPtr, this, SWIGTYPE_p_float.getCPtr(value));
  }

  public SWIGTYPE_p_float getPowerXY() {
    long cPtr = nel3dJNI.CMeshVPWindTree_PowerXY_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
  }

  public void setPowerZ(SWIGTYPE_p_float value) {
    nel3dJNI.CMeshVPWindTree_PowerZ_set(swigCPtr, this, SWIGTYPE_p_float.getCPtr(value));
  }

  public SWIGTYPE_p_float getPowerZ() {
    long cPtr = nel3dJNI.CMeshVPWindTree_PowerZ_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
  }

  public void setBias(SWIGTYPE_p_float value) {
    nel3dJNI.CMeshVPWindTree_Bias_set(swigCPtr, this, SWIGTYPE_p_float.getCPtr(value));
  }

  public SWIGTYPE_p_float getBias() {
    long cPtr = nel3dJNI.CMeshVPWindTree_Bias_get(swigCPtr, this);
    return (cPtr == 0) ? null : new SWIGTYPE_p_float(cPtr, false);
  }

  public void setSpecularLighting(boolean value) {
    nel3dJNI.CMeshVPWindTree_SpecularLighting_set(swigCPtr, this, value);
  }

  public boolean getSpecularLighting() {
    return nel3dJNI.CMeshVPWindTree_SpecularLighting_get(swigCPtr, this);
  }

  public CMeshVPWindTree() {
    this(nel3dJNI.new_CMeshVPWindTree(), true);
  }

  public void initInstance(CMeshBaseInstance mbi) {
    nel3dJNI.CMeshVPWindTree_initInstance(swigCPtr, this, CMeshBaseInstance.getCPtr(mbi), mbi);
  }

  public boolean begin(IDriver drv, CScene scene, CMeshBaseInstance mbi, SWIGTYPE_p_NLMISC__CMatrix invertedModelMat, CVector arg4) {
    return nel3dJNI.CMeshVPWindTree_begin(swigCPtr, this, IDriver.getCPtr(drv), drv, CScene.getCPtr(scene), scene, CMeshBaseInstance.getCPtr(mbi), mbi, SWIGTYPE_p_NLMISC__CMatrix.getCPtr(invertedModelMat), CVector.getCPtr(arg4), arg4);
  }

  public void end(IDriver drv) {
    nel3dJNI.CMeshVPWindTree_end(swigCPtr, this, IDriver.getCPtr(drv), drv);
  }

  public void setupForMaterial(CMaterial mat, IDriver drv, CScene scene, CVertexBuffer vb) {
    nel3dJNI.CMeshVPWindTree_setupForMaterial(swigCPtr, this, CMaterial.getCPtr(mat), mat, IDriver.getCPtr(drv), drv, CScene.getCPtr(scene), scene, CVertexBuffer.getCPtr(vb), vb);
  }

  public float getMaxVertexMove() {
    return nel3dJNI.CMeshVPWindTree_getMaxVertexMove(swigCPtr, this);
  }

  public void serial(IStream f) {
    nel3dJNI.CMeshVPWindTree_serial(swigCPtr, this, IStream.getCPtr(f), f);
  }

  public boolean supportMeshBlockRendering() {
    return nel3dJNI.CMeshVPWindTree_supportMeshBlockRendering(swigCPtr, this);
  }

  public boolean isMBRVpOk(IDriver drv) {
    return nel3dJNI.CMeshVPWindTree_isMBRVpOk(swigCPtr, this, IDriver.getCPtr(drv), drv);
  }

  public void beginMBRMesh(IDriver drv, CScene scene) {
    nel3dJNI.CMeshVPWindTree_beginMBRMesh(swigCPtr, this, IDriver.getCPtr(drv), drv, CScene.getCPtr(scene), scene);
  }

  public void beginMBRInstance(IDriver drv, CScene scene, CMeshBaseInstance mbi, SWIGTYPE_p_NLMISC__CMatrix invertedModelMat) {
    nel3dJNI.CMeshVPWindTree_beginMBRInstance(swigCPtr, this, IDriver.getCPtr(drv), drv, CScene.getCPtr(scene), scene, CMeshBaseInstance.getCPtr(mbi), mbi, SWIGTYPE_p_NLMISC__CMatrix.getCPtr(invertedModelMat));
  }

  public void endMBRMesh(IDriver drv) {
    nel3dJNI.CMeshVPWindTree_endMBRMesh(swigCPtr, this, IDriver.getCPtr(drv), drv);
  }

  public final static int HrcDepth = nel3dJNI.CMeshVPWindTree_HrcDepth_get();

}
